package com.geek.ch06.anno;

import com.geek.entity.Item;
import org.apache.ibatis.annotations.Select;

/**
 * @Desc TODO
 * @Author
 * @Date 2025/11/20
 */
public interface ItemsMapper {

    //根据商品ID，查询商品信息
    @Select("select * from items where id = #{itemId}")
    public Item findItemsById(int itemId);

    //<!-- 注解方式作业2：每个订单中包含的商品信息  OM -->
    @Select("select * from items where id = #{itemId}")
    Item selectItem(Integer itemId);
}
